﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace csharp_application_path
{
    class Program
    {
        static void Main(string[] args)
        {
            String application_path = System.Reflection.Assembly.GetExecutingAssembly().Location;
            String work_path = System.Environment.CurrentDirectory;

            Console.WriteLine("=======> application path");
            Console.WriteLine(System.IO.Path.GetDirectoryName(application_path));

            Console.WriteLine("=======> work path");
            Console.WriteLine(work_path);

            Console.Write("press anykey...");
            Console.ReadKey();
        }
    }
}
